<template>
  <div> 
    <ul id="list" v-show="flag">
      <li v-for="(item,index) in list" :key="index">{{item}}</li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: ["熊大", "熊二", "熊三"],
    };
  },
  props: {
    flag: {
      type: Boolean,
    },
  },
  created() {},
  mounted() {},
  methods: {},
};
</script>

<style scoped lang="less">
#list {
  padding: 0px;
  list-style: none;
  width: 300px;
  border: #dddddd 1px solid;
  li {
    line-height: 30px;
    font-size: 15px;
    text-indent: 10px;
  }
}
</style>
